﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site1.Master" CodeBehind="Forum.aspx.vb" Inherits="project.Forum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="brand" HeaderText="brand" SortExpression="brand" />
                <asp:BoundField DataField="w_description" HeaderText="w_description" 
                    SortExpression="w_description" />
            <asp:ImageField DataImageUrlField="wine_image" HeaderText="wine_image">
            <ControlStyle Height="150px" Width="150px" />
            </asp:ImageField> 

                <%--<asp:BoundField DataField="wine_image" HeaderText="wine_image" 
                    SortExpression="wine_image" />--%>
                <asp:BoundField DataField="username" HeaderText="username" 
                    SortExpression="username" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT [brand], [w_description], [wine_image], [username] FROM [forum]">
        </asp:SqlDataSource>
    </p>
    <p>
       
    </p>
    <p>
        &nbsp;</p>
    <p>
        Name of the user<br />
        <asp:TextBox ID="Tb_name" runat="server" Width="147px"></asp:TextBox>
    </p>
    <p>
        brand name</p>
    <p>
        <asp:TextBox ID="Tb_bn" runat="server" Width="148px"></asp:TextBox>
    </p>
    <p>
        Description of wine</p>
    <p>
        <asp:TextBox ID="Tb_d" runat="server" TextMode="MultiLine"></asp:TextBox>
    </p>
    <p>
        image</p>
    <p>
        <asp:FileUpload ID="Flup" runat="server" />
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="enter" Width="114px" />
    </p>
    <p>
    </p>


</asp:Content>
